<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.CmmToAsm.SPARC.CodeGen.CondCode</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-2"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#getCondCode"><span class="hs-identifier">getCondCode</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-3"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier">condIntCode</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-4"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier">condFltCode</span></a></span><span>
</span><span id="line-5"></span><span class="hs-special">)</span><span>
</span><span id="line-6"></span><span>
</span><span id="line-7"></span><span class="hs-keyword">where</span><span>
</span><span id="line-8"></span><span>
</span><span id="line-9"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Prelude.html"><span class="hs-identifier">GHC.Prelude</span></a></span><span>
</span><span id="line-10"></span><span>
</span><span id="line-11"></span><span class="hs-keyword">import</span><span> </span><span class="hs-pragma">{-# SOURCE</span><span> </span><span class="hs-pragma">#-}</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.CodeGen.Gen32.html"><span class="hs-identifier">GHC.CmmToAsm.SPARC.CodeGen.Gen32</span></a></span><span>
</span><span id="line-12"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.CodeGen.Base.html"><span class="hs-identifier">GHC.CmmToAsm.SPARC.CodeGen.Base</span></a></span><span>
</span><span id="line-13"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.Instr.html"><span class="hs-identifier">GHC.CmmToAsm.SPARC.Instr</span></a></span><span>
</span><span id="line-14"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.Regs.html"><span class="hs-identifier">GHC.CmmToAsm.SPARC.Regs</span></a></span><span>
</span><span id="line-15"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.Cond.html"><span class="hs-identifier">GHC.CmmToAsm.SPARC.Cond</span></a></span><span>
</span><span id="line-16"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.Imm.html"><span class="hs-identifier">GHC.CmmToAsm.SPARC.Imm</span></a></span><span>
</span><span id="line-17"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.Base.html"><span class="hs-identifier">GHC.CmmToAsm.SPARC.Base</span></a></span><span>
</span><span id="line-18"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Monad.html"><span class="hs-identifier">GHC.CmmToAsm.Monad</span></a></span><span>
</span><span id="line-19"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Format.html"><span class="hs-identifier">GHC.CmmToAsm.Format</span></a></span><span>
</span><span id="line-20"></span><span>
</span><span id="line-21"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Cmm.html"><span class="hs-identifier">GHC.Cmm</span></a></span><span>
</span><span id="line-22"></span><span>
</span><span id="line-23"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Data.OrdList.html"><span class="hs-identifier">GHC.Data.OrdList</span></a></span><span>
</span><span id="line-24"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html"><span class="hs-identifier">GHC.Utils.Outputable</span></a></span><span>
</span><span id="line-25"></span><span>
</span><span id="line-26"></span><span>
</span><span id="line-27"></span><span class="annot"><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#getCondCode"><span class="hs-identifier hs-type">getCondCode</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Cmm.Expr.html#CmmExpr"><span class="hs-identifier hs-type">CmmExpr</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Monad.html#NatM"><span class="hs-identifier hs-type">NatM</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.CodeGen.Base.html#CondCode"><span class="hs-identifier hs-type">CondCode</span></a></span><span>
</span><span id="line-28"></span><span id="getCondCode"><span class="annot"><span class="annottext">getCondCode :: CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#getCondCode"><span class="hs-identifier hs-var hs-var">getCondCode</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Cmm.Expr.html#CmmMachOp"><span class="hs-identifier hs-type">CmmMachOp</span></a></span><span> </span><span id="local-6989586621681034433"><span class="annot"><span class="annottext">MachOp
</span><a href="#local-6989586621681034433"><span class="hs-identifier hs-var">mop</span></a></span></span><span> </span><span class="hs-special">[</span><span id="local-6989586621681034432"><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621681034431"><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">]</span><span class="hs-special">)</span><span>
</span><span id="line-29"></span><span>  </span><span class="hs-glyph">=</span><span>
</span><span id="line-30"></span><span>    </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">MachOp
</span><a href="#local-6989586621681034433"><span class="hs-identifier hs-var">mop</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-31"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_F_Eq"><span class="hs-identifier hs-type">MO_F_Eq</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="GHC.Cmm.Type.html#W32"><span class="hs-identifier hs-var">W32</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-var">condFltCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#EQQ"><span class="hs-identifier hs-var">EQQ</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-32"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_F_Ne"><span class="hs-identifier hs-type">MO_F_Ne</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="GHC.Cmm.Type.html#W32"><span class="hs-identifier hs-var">W32</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-var">condFltCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#NE"><span class="hs-identifier hs-var">NE</span></a></span><span>  </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-33"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_F_Gt"><span class="hs-identifier hs-type">MO_F_Gt</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="GHC.Cmm.Type.html#W32"><span class="hs-identifier hs-var">W32</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-var">condFltCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#GTT"><span class="hs-identifier hs-var">GTT</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-34"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_F_Ge"><span class="hs-identifier hs-type">MO_F_Ge</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="GHC.Cmm.Type.html#W32"><span class="hs-identifier hs-var">W32</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-var">condFltCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#GE"><span class="hs-identifier hs-var">GE</span></a></span><span>  </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-35"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_F_Lt"><span class="hs-identifier hs-type">MO_F_Lt</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="GHC.Cmm.Type.html#W32"><span class="hs-identifier hs-var">W32</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-var">condFltCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#LTT"><span class="hs-identifier hs-var">LTT</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-36"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_F_Le"><span class="hs-identifier hs-type">MO_F_Le</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="GHC.Cmm.Type.html#W32"><span class="hs-identifier hs-var">W32</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-var">condFltCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#LE"><span class="hs-identifier hs-var">LE</span></a></span><span>  </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-37"></span><span>
</span><span id="line-38"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_F_Eq"><span class="hs-identifier hs-type">MO_F_Eq</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="GHC.Cmm.Type.html#W64"><span class="hs-identifier hs-var">W64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-var">condFltCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#EQQ"><span class="hs-identifier hs-var">EQQ</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-39"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_F_Ne"><span class="hs-identifier hs-type">MO_F_Ne</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="GHC.Cmm.Type.html#W64"><span class="hs-identifier hs-var">W64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-var">condFltCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#NE"><span class="hs-identifier hs-var">NE</span></a></span><span>  </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-40"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_F_Gt"><span class="hs-identifier hs-type">MO_F_Gt</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="GHC.Cmm.Type.html#W64"><span class="hs-identifier hs-var">W64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-var">condFltCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#GTT"><span class="hs-identifier hs-var">GTT</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-41"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_F_Ge"><span class="hs-identifier hs-type">MO_F_Ge</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="GHC.Cmm.Type.html#W64"><span class="hs-identifier hs-var">W64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-var">condFltCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#GE"><span class="hs-identifier hs-var">GE</span></a></span><span>  </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-42"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_F_Lt"><span class="hs-identifier hs-type">MO_F_Lt</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="GHC.Cmm.Type.html#W64"><span class="hs-identifier hs-var">W64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-var">condFltCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#LTT"><span class="hs-identifier hs-var">LTT</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-43"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_F_Le"><span class="hs-identifier hs-type">MO_F_Le</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="GHC.Cmm.Type.html#W64"><span class="hs-identifier hs-var">W64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-var">condFltCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#LE"><span class="hs-identifier hs-var">LE</span></a></span><span>  </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-44"></span><span>
</span><span id="line-45"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_Eq"><span class="hs-identifier hs-type">MO_Eq</span></a></span><span>   </span><span class="annot"><span class="annottext">Width
</span><span class="hs-identifier">_</span></span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier hs-var">condIntCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#EQQ"><span class="hs-identifier hs-var">EQQ</span></a></span><span>  </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-46"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_Ne"><span class="hs-identifier hs-type">MO_Ne</span></a></span><span>   </span><span class="annot"><span class="annottext">Width
</span><span class="hs-identifier">_</span></span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier hs-var">condIntCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#NE"><span class="hs-identifier hs-var">NE</span></a></span><span>   </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-47"></span><span>
</span><span id="line-48"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_S_Gt"><span class="hs-identifier hs-type">MO_S_Gt</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><span class="hs-identifier">_</span></span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier hs-var">condIntCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#GTT"><span class="hs-identifier hs-var">GTT</span></a></span><span>  </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-49"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_S_Ge"><span class="hs-identifier hs-type">MO_S_Ge</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><span class="hs-identifier">_</span></span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier hs-var">condIntCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#GE"><span class="hs-identifier hs-var">GE</span></a></span><span>   </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-50"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_S_Lt"><span class="hs-identifier hs-type">MO_S_Lt</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><span class="hs-identifier">_</span></span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier hs-var">condIntCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#LTT"><span class="hs-identifier hs-var">LTT</span></a></span><span>  </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-51"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_S_Le"><span class="hs-identifier hs-type">MO_S_Le</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><span class="hs-identifier">_</span></span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier hs-var">condIntCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#LE"><span class="hs-identifier hs-var">LE</span></a></span><span>   </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-52"></span><span>
</span><span id="line-53"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_U_Gt"><span class="hs-identifier hs-type">MO_U_Gt</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><span class="hs-identifier">_</span></span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier hs-var">condIntCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#GU"><span class="hs-identifier hs-var">GU</span></a></span><span>   </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-54"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_U_Ge"><span class="hs-identifier hs-type">MO_U_Ge</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><span class="hs-identifier">_</span></span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier hs-var">condIntCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#GEU"><span class="hs-identifier hs-var">GEU</span></a></span><span>  </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-55"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_U_Lt"><span class="hs-identifier hs-type">MO_U_Lt</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><span class="hs-identifier">_</span></span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier hs-var">condIntCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#LU"><span class="hs-identifier hs-var">LU</span></a></span><span>   </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-56"></span><span>      </span><span class="annot"><a href="GHC.Cmm.MachOp.html#MO_U_Le"><span class="hs-identifier hs-type">MO_U_Le</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><span class="hs-identifier">_</span></span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier hs-var">condIntCode</span></a></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="GHC.CmmToAsm.SPARC.Cond.html#LEU"><span class="hs-identifier hs-var">LEU</span></a></span><span>  </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-57"></span><span>
</span><span id="line-58"></span><span>      </span><span class="annot"><span class="annottext">MachOp
</span><span class="hs-identifier">_</span></span><span>           </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc -&gt; NatM CondCode
forall a. HasCallStack =&gt; String -&gt; SDoc -&gt; a
</span><a href="GHC.Utils.Outputable.html#pprPanic"><span class="hs-identifier hs-var">pprPanic</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;SPARC.CodeGen.CondCode.getCondCode&quot;</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">CmmExpr -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">MachOp -&gt; [CmmExpr] -&gt; CmmExpr
</span><a href="GHC.Cmm.Expr.html#CmmMachOp"><span class="hs-identifier hs-var">CmmMachOp</span></a></span><span> </span><span class="annot"><span class="annottext">MachOp
</span><a href="#local-6989586621681034433"><span class="hs-identifier hs-var">mop</span></a></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034432"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-special">,</span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034431"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">]</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-59"></span><span>
</span><span id="line-60"></span><span class="annot"><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#getCondCode"><span class="hs-identifier hs-var">getCondCode</span></a></span><span> </span><span id="local-6989586621681034400"><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034400"><span class="hs-identifier hs-var">other</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc -&gt; NatM CondCode
forall a. HasCallStack =&gt; String -&gt; SDoc -&gt; a
</span><a href="GHC.Utils.Outputable.html#pprPanic"><span class="hs-identifier hs-var">pprPanic</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;SPARC.CodeGen.CondCode.getCondCode&quot;</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">CmmExpr -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034400"><span class="hs-identifier hs-var">other</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-61"></span><span>
</span><span id="line-62"></span><span>
</span><span id="line-63"></span><span>
</span><span id="line-64"></span><span>
</span><span id="line-65"></span><span>
</span><span id="line-66"></span><span class="hs-comment">-- @cond(Int|Flt)Code@: Turn a boolean expression into a condition, to be</span><span>
</span><span id="line-67"></span><span class="hs-comment">-- passed back up the tree.</span><span>
</span><span id="line-68"></span><span>
</span><span id="line-69"></span><span class="annot"><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier hs-type">condIntCode</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.Cond.html#Cond"><span class="hs-identifier hs-type">Cond</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Cmm.Expr.html#CmmExpr"><span class="hs-identifier hs-type">CmmExpr</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Cmm.Expr.html#CmmExpr"><span class="hs-identifier hs-type">CmmExpr</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Monad.html#NatM"><span class="hs-identifier hs-type">NatM</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.CodeGen.Base.html#CondCode"><span class="hs-identifier hs-type">CondCode</span></a></span><span>
</span><span id="line-70"></span><span id="condIntCode"><span class="annot"><span class="annottext">condIntCode :: Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier hs-var hs-var">condIntCode</span></a></span></span><span> </span><span id="local-6989586621681034399"><span class="annot"><span class="annottext">Cond
</span><a href="#local-6989586621681034399"><span class="hs-identifier hs-var">cond</span></a></span></span><span> </span><span id="local-6989586621681034398"><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034398"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Cmm.Expr.html#CmmLit"><span class="hs-identifier hs-type">CmmLit</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Cmm.Expr.html#CmmInt"><span class="hs-identifier hs-type">CmmInt</span></a></span><span> </span><span id="local-6989586621681034395"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621681034395"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span class="annot"><span class="annottext">Width
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-71"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Bool
forall a. Integral a =&gt; a -&gt; Bool
</span><a href="GHC.CmmToAsm.SPARC.Base.html#fits13Bits"><span class="hs-identifier hs-var">fits13Bits</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621681034395"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-72"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-73"></span><span>       </span><span class="hs-special">(</span><span id="local-6989586621681034393"><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034393"><span class="hs-identifier hs-var">src1</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621681034392"><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034392"><span class="hs-identifier hs-var">code</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">CmmExpr -&gt; NatM (Reg, InstrBlock)
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.Gen32.html#getSomeReg"><span class="hs-identifier hs-var">getSomeReg</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034398"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-74"></span><span>       </span><span class="hs-keyword">let</span><span>
</span><span id="line-75"></span><span>           </span><span id="local-6989586621681034388"><span class="annot"><span class="annottext">src2 :: Imm
</span><a href="#local-6989586621681034388"><span class="hs-identifier hs-var hs-var">src2</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Imm
</span><a href="GHC.CmmToAsm.SPARC.Imm.html#ImmInt"><span class="hs-identifier hs-var">ImmInt</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Integer -&gt; Int
forall a. Num a =&gt; Integer -&gt; a
</span><a href="../../base/src/GHC.Num.html#fromInteger"><span class="hs-identifier hs-var">fromInteger</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621681034395"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-76"></span><span>           </span><span id="local-6989586621681034386"><span class="annot"><span class="annottext">code' :: InstrBlock
</span><a href="#local-6989586621681034386"><span class="hs-identifier hs-var hs-var">code'</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034392"><span class="hs-identifier hs-var">code</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock -&gt; Instr -&gt; InstrBlock
forall a. OrdList a -&gt; a -&gt; OrdList a
</span><a href="GHC.Data.OrdList.html#snocOL"><span class="hs-operator hs-var">`snocOL`</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Reg -&gt; RI -&gt; Reg -&gt; Instr
</span><a href="GHC.CmmToAsm.SPARC.Instr.html#SUB"><span class="hs-identifier hs-var">SUB</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034393"><span class="hs-identifier hs-var">src1</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Imm -&gt; RI
</span><a href="GHC.CmmToAsm.SPARC.Instr.html#RIImm"><span class="hs-identifier hs-var">RIImm</span></a></span><span> </span><span class="annot"><span class="annottext">Imm
</span><a href="#local-6989586621681034388"><span class="hs-identifier hs-var">src2</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="GHC.CmmToAsm.SPARC.Regs.html#g0"><span class="hs-identifier hs-var">g0</span></a></span><span>
</span><span id="line-77"></span><span>       </span><span class="annot"><span class="annottext">CondCode -&gt; NatM CondCode
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Bool -&gt; Cond -&gt; InstrBlock -&gt; CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.Base.html#CondCode"><span class="hs-identifier hs-var">CondCode</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="#local-6989586621681034399"><span class="hs-identifier hs-var">cond</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034386"><span class="hs-identifier hs-var">code'</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-78"></span><span>
</span><span id="line-79"></span><span class="annot"><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condIntCode"><span class="hs-identifier hs-var">condIntCode</span></a></span><span> </span><span id="local-6989586621681034380"><span class="annot"><span class="annottext">Cond
</span><a href="#local-6989586621681034380"><span class="hs-identifier hs-var">cond</span></a></span></span><span> </span><span id="local-6989586621681034379"><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034379"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621681034378"><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034378"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-80"></span><span>    </span><span class="hs-special">(</span><span id="local-6989586621681034377"><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034377"><span class="hs-identifier hs-var">src1</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621681034376"><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034376"><span class="hs-identifier hs-var">code1</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">CmmExpr -&gt; NatM (Reg, InstrBlock)
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.Gen32.html#getSomeReg"><span class="hs-identifier hs-var">getSomeReg</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034379"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-81"></span><span>    </span><span class="hs-special">(</span><span id="local-6989586621681034375"><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034375"><span class="hs-identifier hs-var">src2</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621681034374"><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034374"><span class="hs-identifier hs-var">code2</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">CmmExpr -&gt; NatM (Reg, InstrBlock)
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.Gen32.html#getSomeReg"><span class="hs-identifier hs-var">getSomeReg</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034378"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-82"></span><span>    </span><span class="hs-keyword">let</span><span>
</span><span id="line-83"></span><span>        </span><span id="local-6989586621681034373"><span class="annot"><span class="annottext">code__2 :: InstrBlock
</span><a href="#local-6989586621681034373"><span class="hs-identifier hs-var hs-var">code__2</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034376"><span class="hs-identifier hs-var">code1</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock -&gt; InstrBlock -&gt; InstrBlock
forall a. OrdList a -&gt; OrdList a -&gt; OrdList a
</span><a href="GHC.Data.OrdList.html#appOL"><span class="hs-operator hs-var">`appOL`</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034374"><span class="hs-identifier hs-var">code2</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock -&gt; Instr -&gt; InstrBlock
forall a. OrdList a -&gt; a -&gt; OrdList a
</span><a href="GHC.Data.OrdList.html#snocOL"><span class="hs-operator hs-var">`snocOL`</span></a></span><span>
</span><span id="line-84"></span><span>                  </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Reg -&gt; RI -&gt; Reg -&gt; Instr
</span><a href="GHC.CmmToAsm.SPARC.Instr.html#SUB"><span class="hs-identifier hs-var">SUB</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034377"><span class="hs-identifier hs-var">src1</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Reg -&gt; RI
</span><a href="GHC.CmmToAsm.SPARC.Instr.html#RIReg"><span class="hs-identifier hs-var">RIReg</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034375"><span class="hs-identifier hs-var">src2</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="GHC.CmmToAsm.SPARC.Regs.html#g0"><span class="hs-identifier hs-var">g0</span></a></span><span>
</span><span id="line-85"></span><span>    </span><span class="annot"><span class="annottext">CondCode -&gt; NatM CondCode
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Bool -&gt; Cond -&gt; InstrBlock -&gt; CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.Base.html#CondCode"><span class="hs-identifier hs-var">CondCode</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="#local-6989586621681034380"><span class="hs-identifier hs-var">cond</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034373"><span class="hs-identifier hs-var">code__2</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-86"></span><span>
</span><span id="line-87"></span><span>
</span><span id="line-88"></span><span class="annot"><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-type">condFltCode</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.Cond.html#Cond"><span class="hs-identifier hs-type">Cond</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Cmm.Expr.html#CmmExpr"><span class="hs-identifier hs-type">CmmExpr</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Cmm.Expr.html#CmmExpr"><span class="hs-identifier hs-type">CmmExpr</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Monad.html#NatM"><span class="hs-identifier hs-type">NatM</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.CodeGen.Base.html#CondCode"><span class="hs-identifier hs-type">CondCode</span></a></span><span>
</span><span id="line-89"></span><span id="condFltCode"><span class="annot"><span class="annottext">condFltCode :: Cond -&gt; CmmExpr -&gt; CmmExpr -&gt; NatM CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.CondCode.html#condFltCode"><span class="hs-identifier hs-var hs-var">condFltCode</span></a></span></span><span> </span><span id="local-6989586621681034370"><span class="annot"><span class="annottext">Cond
</span><a href="#local-6989586621681034370"><span class="hs-identifier hs-var">cond</span></a></span></span><span> </span><span id="local-6989586621681034369"><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034369"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621681034368"><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034368"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-90"></span><span>    </span><span id="local-6989586621681034367"><span class="annot"><span class="annottext">Platform
</span><a href="#local-6989586621681034367"><span class="hs-identifier hs-var">platform</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">NatM Platform
</span><a href="GHC.CmmToAsm.Monad.html#getPlatform"><span class="hs-identifier hs-var">getPlatform</span></a></span><span>
</span><span id="line-91"></span><span>    </span><span class="hs-special">(</span><span id="local-6989586621681034365"><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034365"><span class="hs-identifier hs-var">src1</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621681034364"><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034364"><span class="hs-identifier hs-var">code1</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">CmmExpr -&gt; NatM (Reg, InstrBlock)
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.Gen32.html#getSomeReg"><span class="hs-identifier hs-var">getSomeReg</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034369"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-92"></span><span>    </span><span class="hs-special">(</span><span id="local-6989586621681034363"><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034363"><span class="hs-identifier hs-var">src2</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621681034362"><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034362"><span class="hs-identifier hs-var">code2</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">CmmExpr -&gt; NatM (Reg, InstrBlock)
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.Gen32.html#getSomeReg"><span class="hs-identifier hs-var">getSomeReg</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034368"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-93"></span><span>    </span><span id="local-6989586621681034361"><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034361"><span class="hs-identifier hs-var">tmp</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Format -&gt; NatM Reg
</span><a href="GHC.CmmToAsm.Monad.html#getNewRegNat"><span class="hs-identifier hs-var">getNewRegNat</span></a></span><span> </span><span class="annot"><span class="annottext">Format
</span><a href="GHC.CmmToAsm.Format.html#FF64"><span class="hs-identifier hs-var">FF64</span></a></span><span>
</span><span id="line-94"></span><span>    </span><span class="hs-keyword">let</span><span>
</span><span id="line-95"></span><span>        </span><span id="local-6989586621681034358"><span class="annot"><span class="annottext">promote :: Reg -&gt; Instr
</span><a href="#local-6989586621681034358"><span class="hs-identifier hs-var hs-var">promote</span></a></span></span><span> </span><span id="local-6989586621681034357"><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034357"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Format -&gt; Format -&gt; Reg -&gt; Reg -&gt; Instr
</span><a href="GHC.CmmToAsm.SPARC.Instr.html#FxTOy"><span class="hs-identifier hs-var">FxTOy</span></a></span><span> </span><span class="annot"><span class="annottext">Format
</span><a href="GHC.CmmToAsm.Format.html#FF32"><span class="hs-identifier hs-var">FF32</span></a></span><span> </span><span class="annot"><span class="annottext">Format
</span><a href="GHC.CmmToAsm.Format.html#FF64"><span class="hs-identifier hs-var">FF64</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034357"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034361"><span class="hs-identifier hs-var">tmp</span></a></span><span>
</span><span id="line-96"></span><span>
</span><span id="line-97"></span><span>        </span><span id="local-6989586621681034354"><span class="annot"><span class="annottext">pk1 :: CmmType
</span><a href="#local-6989586621681034354"><span class="hs-identifier hs-var hs-var">pk1</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Platform -&gt; CmmExpr -&gt; CmmType
</span><a href="GHC.Cmm.Expr.html#cmmExprType"><span class="hs-identifier hs-var">cmmExprType</span></a></span><span> </span><span class="annot"><span class="annottext">Platform
</span><a href="#local-6989586621681034367"><span class="hs-identifier hs-var">platform</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034369"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-98"></span><span>        </span><span id="local-6989586621681034352"><span class="annot"><span class="annottext">pk2 :: CmmType
</span><a href="#local-6989586621681034352"><span class="hs-identifier hs-var hs-var">pk2</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Platform -&gt; CmmExpr -&gt; CmmType
</span><a href="GHC.Cmm.Expr.html#cmmExprType"><span class="hs-identifier hs-var">cmmExprType</span></a></span><span> </span><span class="annot"><span class="annottext">Platform
</span><a href="#local-6989586621681034367"><span class="hs-identifier hs-var">platform</span></a></span><span> </span><span class="annot"><span class="annottext">CmmExpr
</span><a href="#local-6989586621681034368"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-99"></span><span>
</span><span id="line-100"></span><span>        </span><span id="local-6989586621681034349"><span class="annot"><span class="annottext">code__2 :: InstrBlock
</span><a href="#local-6989586621681034349"><span class="hs-identifier hs-var hs-var">code__2</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-101"></span><span>                </span><span class="hs-keyword">if</span><span> </span><span class="annot"><span class="annottext">CmmType
</span><a href="#local-6989586621681034354"><span class="hs-identifier hs-var">pk1</span></a></span><span> </span><span class="annot"><span class="annottext">CmmType -&gt; CmmType -&gt; Bool
</span><a href="GHC.Cmm.Type.html#cmmEqType"><span class="hs-operator hs-var">`cmmEqType`</span></a></span><span> </span><span class="annot"><span class="annottext">CmmType
</span><a href="#local-6989586621681034352"><span class="hs-identifier hs-var">pk2</span></a></span><span> </span><span class="hs-keyword">then</span><span>
</span><span id="line-102"></span><span>                    </span><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034364"><span class="hs-identifier hs-var">code1</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock -&gt; InstrBlock -&gt; InstrBlock
forall a. OrdList a -&gt; OrdList a -&gt; OrdList a
</span><a href="GHC.Data.OrdList.html#appOL"><span class="hs-operator hs-var">`appOL`</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034362"><span class="hs-identifier hs-var">code2</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock -&gt; Instr -&gt; InstrBlock
forall a. OrdList a -&gt; a -&gt; OrdList a
</span><a href="GHC.Data.OrdList.html#snocOL"><span class="hs-operator hs-var">`snocOL`</span></a></span><span>
</span><span id="line-103"></span><span>                    </span><span class="annot"><span class="annottext">Bool -&gt; Format -&gt; Reg -&gt; Reg -&gt; Instr
</span><a href="GHC.CmmToAsm.SPARC.Instr.html#FCMP"><span class="hs-identifier hs-var">FCMP</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">CmmType -&gt; Format
</span><a href="GHC.CmmToAsm.Format.html#cmmTypeFormat"><span class="hs-identifier hs-var">cmmTypeFormat</span></a></span><span> </span><span class="annot"><span class="annottext">CmmType
</span><a href="#local-6989586621681034354"><span class="hs-identifier hs-var">pk1</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034365"><span class="hs-identifier hs-var">src1</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034363"><span class="hs-identifier hs-var">src2</span></a></span><span>
</span><span id="line-104"></span><span>                </span><span class="hs-keyword">else</span><span> </span><span class="hs-keyword">if</span><span> </span><span class="annot"><span class="annottext">CmmType -&gt; Width
</span><a href="GHC.Cmm.Type.html#typeWidth"><span class="hs-identifier hs-var">typeWidth</span></a></span><span> </span><span class="annot"><span class="annottext">CmmType
</span><a href="#local-6989586621681034354"><span class="hs-identifier hs-var">pk1</span></a></span><span> </span><span class="annot"><span class="annottext">Width -&gt; Width -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="GHC.Cmm.Type.html#W32"><span class="hs-identifier hs-var">W32</span></a></span><span> </span><span class="hs-keyword">then</span><span>
</span><span id="line-105"></span><span>                    </span><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034364"><span class="hs-identifier hs-var">code1</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock -&gt; Instr -&gt; InstrBlock
forall a. OrdList a -&gt; a -&gt; OrdList a
</span><a href="GHC.Data.OrdList.html#snocOL"><span class="hs-operator hs-var">`snocOL`</span></a></span><span> </span><span class="annot"><span class="annottext">Reg -&gt; Instr
</span><a href="#local-6989586621681034358"><span class="hs-identifier hs-var">promote</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034365"><span class="hs-identifier hs-var">src1</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock -&gt; InstrBlock -&gt; InstrBlock
forall a. OrdList a -&gt; OrdList a -&gt; OrdList a
</span><a href="GHC.Data.OrdList.html#appOL"><span class="hs-operator hs-var">`appOL`</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034362"><span class="hs-identifier hs-var">code2</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock -&gt; Instr -&gt; InstrBlock
forall a. OrdList a -&gt; a -&gt; OrdList a
</span><a href="GHC.Data.OrdList.html#snocOL"><span class="hs-operator hs-var">`snocOL`</span></a></span><span>
</span><span id="line-106"></span><span>                    </span><span class="annot"><span class="annottext">Bool -&gt; Format -&gt; Reg -&gt; Reg -&gt; Instr
</span><a href="GHC.CmmToAsm.SPARC.Instr.html#FCMP"><span class="hs-identifier hs-var">FCMP</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span class="annot"><span class="annottext">Format
</span><a href="GHC.CmmToAsm.Format.html#FF64"><span class="hs-identifier hs-var">FF64</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034361"><span class="hs-identifier hs-var">tmp</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034363"><span class="hs-identifier hs-var">src2</span></a></span><span>
</span><span id="line-107"></span><span>                </span><span class="hs-keyword">else</span><span>
</span><span id="line-108"></span><span>                    </span><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034364"><span class="hs-identifier hs-var">code1</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock -&gt; InstrBlock -&gt; InstrBlock
forall a. OrdList a -&gt; OrdList a -&gt; OrdList a
</span><a href="GHC.Data.OrdList.html#appOL"><span class="hs-operator hs-var">`appOL`</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034362"><span class="hs-identifier hs-var">code2</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock -&gt; Instr -&gt; InstrBlock
forall a. OrdList a -&gt; a -&gt; OrdList a
</span><a href="GHC.Data.OrdList.html#snocOL"><span class="hs-operator hs-var">`snocOL`</span></a></span><span> </span><span class="annot"><span class="annottext">Reg -&gt; Instr
</span><a href="#local-6989586621681034358"><span class="hs-identifier hs-var">promote</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034363"><span class="hs-identifier hs-var">src2</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock -&gt; Instr -&gt; InstrBlock
forall a. OrdList a -&gt; a -&gt; OrdList a
</span><a href="GHC.Data.OrdList.html#snocOL"><span class="hs-operator hs-var">`snocOL`</span></a></span><span>
</span><span id="line-109"></span><span>                    </span><span class="annot"><span class="annottext">Bool -&gt; Format -&gt; Reg -&gt; Reg -&gt; Instr
</span><a href="GHC.CmmToAsm.SPARC.Instr.html#FCMP"><span class="hs-identifier hs-var">FCMP</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span class="annot"><span class="annottext">Format
</span><a href="GHC.CmmToAsm.Format.html#FF64"><span class="hs-identifier hs-var">FF64</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034365"><span class="hs-identifier hs-var">src1</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621681034361"><span class="hs-identifier hs-var">tmp</span></a></span><span>
</span><span id="line-110"></span><span>    </span><span class="annot"><span class="annottext">CondCode -&gt; NatM CondCode
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Bool -&gt; Cond -&gt; InstrBlock -&gt; CondCode
</span><a href="GHC.CmmToAsm.SPARC.CodeGen.Base.html#CondCode"><span class="hs-identifier hs-var">CondCode</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span class="annot"><span class="annottext">Cond
</span><a href="#local-6989586621681034370"><span class="hs-identifier hs-var">cond</span></a></span><span> </span><span class="annot"><span class="annottext">InstrBlock
</span><a href="#local-6989586621681034349"><span class="hs-identifier hs-var">code__2</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-111"></span></pre></body></html>